﻿<?php 
require_once '../../includefiles.php';
require_once '../../includes/download.php';
include_once("../../model/users.php");
require_once '../../model/admindetails.php';
include_once '../../model/email.php';
include_once '../../model/lead_messages.php';

$downloader = new FileDownload();
$objLeadMess = new Model_LEAD_MESSAGE();
$id = $_GET['id1'];
$objmess = $objLeadMess->getMessageDetail($id);
$path = BASEFOLDER.'uploads/messages/lead'.$objmess['lead_id'].'/';

$downloader->do_download($objmess[5],$path);
exit;


?>